package com.wk.warehouse.demo;

import com.wk.warehouse.demo1.OtherService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.ComponentScan;

/**
 * @ClassName Demo
 * @Author TanJian
 * @Date 2023/3/23 9:45
 * @Version 1.0
 */



public class Demo {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext context=
                new AnnotationConfigApplicationContext(OrderConfiguration.class);
        System.out.println(context.getBean(OtherService.class));
    }
}
